//
// Created by Linngdu664 on 2022/9/18.
//

#ifndef DATA_STRUCTURE_NODE_H
#define DATA_STRUCTURE_NODE_H

class Node {
private:
    int data;
    Node *next = nullptr;
public:
    Node(int data) : data(data) {}

    int getData() const {
        return data;
    }

    void setData(int data) {
        Node::data = data;
    }

    Node *getNext() const {
        return next;
    }

    void setNext(Node *next) {
        Node::next = next;
    }
};

#endif //DATA_STRUCTURE_NODE_H
